package 设计模式.装饰器模式.电商促销案例;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 商品
 * 商品信息中包含了促销类型信息，一个商品可以包含多个促销类型（本案例只讨论单个促销和组合促销）
 */
public class Merchandise {

    private String sku;// 商品 SKU
    private String name; // 商品名称
    private BigDecimal price; // 商品单价
    private Map<PromotionType, SupportPromotions> supportPromotions; // 支持促销类型

    public BigDecimal getPrice() {
        return price;
    }
    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public String getSku() {
        return sku;
    }
    public void setSku(String sku) {
        this.sku = sku;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public Map<PromotionType, SupportPromotions> getSupportPromotions() {
        return supportPromotions;
    }
    public void setSupportPromotions(Map<PromotionType, SupportPromotions> supportPromotions) {
        this.supportPromotions = supportPromotions;
    }
}
